import dayjs from 'dayjs';

export const fundJsonUrl =
  'http://rv730fxyi.hd-bkt.clouddn.com/fund.json?e=1685332948&token=6bxF4NdgoIl_5OSsndIU780a6Yr_66O-N2DBoe_C:qygNyBX1InAOC88kJgX4sFCrXdk=';

//获取天天基金的预估，但是是只有概率。
const tiantianEstimateUrl =
  'https://tiantian-fund-api.vercel.app/api/action?action_name=fundVarietieValuationDetail&FCODE=004475';

//雪球基金的基金预估
const snowBallEstimateUrl = 'https://danjuanfunds.com/djapi/fund/estimate-nav/004475';

const qiemanEstimateUrl = 'https://qieman.com/bmdj/v1/fund/info/004475/daily-estimate-nav';

// 获取一年前的日期
const oneYearAgo = dayjs().subtract(1, 'year');
// 格式化日期
export const formattedDate = oneYearAgo.format('YYYY-MM-DD');

export const fundsCode = ['006624', '004475', '519756', '006195'];

export const zongCodeArr = [
  '004475',
  '006624',
  '006195',
  '001208',
  '008114',
  '005233',
  '004206',
  '002833',
  '003298',
  '004243',
  '006680',
  '007844',
  '006448',
  '008270',
  '005562',
  '005443',
  '001917',
  '008706',
  '008810',
  '519756',
  '260112',
  '210002',
];

export const debtCodeArr = ['002091', '004206', '008810'];

export const fineCodeArr = ['210002', '260112', '004685', '004475', '006195', '006624', '008115'];

export const smallCodeArr = ['006195','008115','002236','001917','090019','002833'];

export const iqooCodeArr = ['004243', '096001', '008706', '006448'];

export const zongCodeArr2 = [
  '006679',
  '162719',
  '160416',
  '005161',
  '005443',
  '008115',
  '000573',
  '008164',
  '260112',
  '008706',
  '001917',
  '004475',
  '003175',
  '006195',
  '501029',
  '008810',
  '096001',
  '001208',
  '006448',
  '006624',
  '002872',
  '008269',
  '090013',
  '320018',
  '004010',
  '001247',
  '005561',
  '007466',
  '160323',
  '002834',
  '519756',
  '004206',
  '007509',
  '001448',
  '006038',
  '007937',
  '005505',
  '210002',
  '002236',
];
